package com.itwn.service.Impl;

import com.itwn.bean.App;
import com.itwn.bean.AppPlatform;
import com.itwn.bean.AppType;
import com.itwn.mapper.AppMapper;
import com.itwn.service.AppService;
import com.sun.xml.internal.bind.v2.model.core.ID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @ClassName: AppServiceImpl
 * @Author: 流光亦断
 * @Date: 2021/8/20 12:15
 * @Version: 1.0     // 版本
 */
@Service
public class AppServiceImpl implements AppService {
    @Autowired
    private AppMapper appMapper;
    @Override
    public List<App> findCondition(App app) {
        return appMapper.findCondition(app);
    }

    @Override
    public List<AppPlatform> findAllP() {
        return appMapper.findAllP();
    }

    @Override
    public List<AppType> findAllT() {
        return appMapper.findAllT();
    }

    @Override
    public int deleteById(int id) {
        return appMapper.deleteById(id);
    }

    @Override
    public int addApp(App app) {
        return appMapper.addApp(app);
    }

    @Override
    public int updateApp(App app) {
        return appMapper.updateApp(app);
    }

    @Override
    public int deleteManyApp(int[] arr) {
        return appMapper.deleteManyApp(arr);
    }
}
